package com.example.service;


import com.example.domain.User;
import com.example.domain.dto.UserDto;
import com.example.domain.vo.UserVo;

import javax.servlet.http.HttpSession;


public interface WebService {
    /**
     * 登录
     *
     * @param UserDto
     * @return
     */
    UserVo login(UserDto UserDto, HttpSession session);

    /**
     * 注册
     *
     * @param userDto
     */
    void register(UserDto userDto, HttpSession session);

    /**
     * 根据用户名查询
     *
     * @param id
     * @return
     */
    User selectById(Integer id);

    void updateUser(User user);

    User getPersonInfo(Integer userId);

    User updatePersonInfo(User user);

    void validatePwd(User user);
}
